﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    public interface IUserRepository
    {
		/// <summary>
		/// 获取用户信息
		/// </summary>
		/// <returns>获取用户信息</returns>
		IQueryable<Userinfo> GetUsers();
		/// <summary>
		/// 登录
		/// </summary>
		/// <param name="UserName">用户名</param>
		/// <param name="PassWord">密码</param>
		/// <returns>返回登录信息</returns>

		Userinfo Login(string userName, string pwd);
		/// <summary>
		/// 新增人员信息
		/// </summary>
		/// <param name="info"></param>
		/// <returns></returns>
		Task<int> AddUser(Userinfo info);
    }
}
